package com.sskj.b70.m.bean;

import android.text.TextUtils;

/**
 * <pre>
 *     author : 吕志豪
 *     e-mail : 1030753080@qq.com
 *     time   : 2018/04/09
 *     desc   :
 *     version: 1.0
 * </pre>
 */

public class TradePositionListBean {

    /**
     * id : 114
     * stockUserId : 58
     * stockCode : BTC/USDT
     * stockName : BTC/USDT
     * stockType : 4
     * currencyType : 3
     * tradeType : 1
     * billPriceType : 2
     * buyBillType : 1
     * entrustLot : 91
     * entrustSuccessLot : 0
     * entrustTime : 2018-08-01 19:59:37
     * entrustNo : 1533124777543qlst9ng5r
     * entrustSuccessTime :
     * lotSize : 1
     * buyPrice : 10.05000019
     * buyFee : 914.55
     * buyMarginFee : 914.55
     * buyDealFee : 0
     * buyDealUsdFee : 0
     * sellPrice : 0
     * sellType : 0
     * slidingScalePrice : 0.05
     * floatMoney : 1
     * winLoseFee : 0
     * overnightFee : 0
     * stopLossPrice : 11.5556
     * stopProfitPrice : 8.0001
     * billStatus : 2
     * createTime : 2018-08-01 19:59:37
     * isDeleted : false
     * timestamp : 1533124777000
     * buyFundType : 0
     * stopProfit : 41
     * stopLoss : 30
     * spread : 0.3
     */

    private int id;
    private int stockUserId;
    private String stockCode;
    private String stockName;
    private int currencyType;
    private int tradeType;
    private int billPriceType;
    private int buyBillType;
    private String entrustLot;
    private String entrustSuccessLot;
    private String entrustTime;
    private String entrustNo;
    private String entrustSuccessTime;
    private double lotSize;
    private String buyPrice;
    private String buyFee;
    private String buyMarginFee;
    private String buyDealFee;
    private String buyDealUsdFee;
    private String sellPrice;
    private int sellType;
    private String slidingScalePrice;
    private String floatMoney;
    private String winLoseFee;
    private String overnightFee;
    private String stopLossPrice;
    private String stopProfitPrice;

    private String createTime;

    private String stopProfit;
    private String stopLoss;
    private String spread;
    /**
     * stockType :
     * entrustUsableLot : 24
     * entrustTime : 1533113570000
     * count : 24
     * countUsable : 24
     * buyPrice : 0.1
     * buyFee : 0
     * buyMarginFee : 0
     * stopLossPrice : -0.4
     * stopProfitPrice : 0.4
     * newPrice : 0
     * slidingScalePrice : 0.1
     * spread : 1
     */

    private String newPrice;
    /**
     * stockType :
     * entrustUsableLot : 24
     * entrustTime : 1533113570000
     * count : 24
     * countUsable : 24
     * buyPrice : 0.1
     * buyFee : 0
     * buyMarginFee : 0
     * stopLossPrice : -0.4
     * stopProfitPrice : 0.4
     * slidingScalePrice : 0.1
     * spread : 1
     */


    private double count;



    public String getPriceUnit() {
        if (TextUtils.isEmpty(stockName)) {
            return "";
        } else {
            String[] split = stockName.split("/");
            if (split.length > 1) {
                return split[1];
            } else {
                return "";
            }
        }
    }

    public String getNumUnit() {
        if (TextUtils.isEmpty(stockName)) {
            return "";
        } else {
            String[] split = stockName.split("/");
            return split[0];
        }
    }
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getStockUserId() {
        return stockUserId;
    }

    public void setStockUserId(int stockUserId) {
        this.stockUserId = stockUserId;
    }

    public String getStockCode() {
        return stockCode;
    }

    public void setStockCode(String stockCode) {
        this.stockCode = stockCode;
    }

    public String getStockName() {
        return stockName;
    }

    public void setStockName(String stockName) {
        this.stockName = stockName;
    }

    public int getCurrencyType() {
        return currencyType;
    }

    public void setCurrencyType(int currencyType) {
        this.currencyType = currencyType;
    }

    public int getTradeType() {
        return tradeType;
    }

    public void setTradeType(int tradeType) {
        this.tradeType = tradeType;
    }

    public int getBillPriceType() {
        return billPriceType;
    }

    public void setBillPriceType(int billPriceType) {
        this.billPriceType = billPriceType;
    }

    public int getBuyBillType() {
        return buyBillType;
    }

    public void setBuyBillType(int buyBillType) {
        this.buyBillType = buyBillType;
    }

    public String getEntrustLot() {
        return entrustLot;
    }

    public void setEntrustLot(String entrustLot) {
        this.entrustLot = entrustLot;
    }

    public String getEntrustSuccessLot() {
        return entrustSuccessLot;
    }

    public void setEntrustSuccessLot(String entrustSuccessLot) {
        this.entrustSuccessLot = entrustSuccessLot;
    }

    public String getEntrustTime() {
        return entrustTime;
    }

    public void setEntrustTime(String entrustTime) {
        this.entrustTime = entrustTime;
    }

    public String getEntrustNo() {
        return entrustNo;
    }

    public void setEntrustNo(String entrustNo) {
        this.entrustNo = entrustNo;
    }

    public String getEntrustSuccessTime() {
        return entrustSuccessTime;
    }

    public void setEntrustSuccessTime(String entrustSuccessTime) {
        this.entrustSuccessTime = entrustSuccessTime;
    }

    public double getLotSize() {
        return lotSize;
    }

    public void setLotSize(double lotSize) {
        this.lotSize = lotSize;
    }

    public String getBuyPrice() {
        return buyPrice;
    }

    public void setBuyPrice(String buyPrice) {
        this.buyPrice = buyPrice;
    }

    public String getBuyFee() {
        return buyFee;
    }

    public void setBuyFee(String buyFee) {
        this.buyFee = buyFee;
    }

    public String getBuyMarginFee() {
        return buyMarginFee;
    }

    public void setBuyMarginFee(String buyMarginFee) {
        this.buyMarginFee = buyMarginFee;
    }

    public String getBuyDealFee() {
        return buyDealFee;
    }

    public void setBuyDealFee(String buyDealFee) {
        this.buyDealFee = buyDealFee;
    }

    public String getBuyDealUsdFee() {
        return buyDealUsdFee;
    }

    public void setBuyDealUsdFee(String buyDealUsdFee) {
        this.buyDealUsdFee = buyDealUsdFee;
    }

    public String getSellPrice() {
        return sellPrice;
    }

    public void setSellPrice(String sellPrice) {
        this.sellPrice = sellPrice;
    }

    public int getSellType() {
        return sellType;
    }

    public void setSellType(int sellType) {
        this.sellType = sellType;
    }

    public String getSlidingScalePrice() {
        return slidingScalePrice;
    }

    public void setSlidingScalePrice(String slidingScalePrice) {
        this.slidingScalePrice = slidingScalePrice;
    }

    public String getFloatMoney() {
        return floatMoney;
    }

    public void setFloatMoney(String floatMoney) {
        this.floatMoney = floatMoney;
    }

    public String getWinLoseFee() {
        return winLoseFee;
    }

    public void setWinLoseFee(String winLoseFee) {
        this.winLoseFee = winLoseFee;
    }

    public String getOvernightFee() {
        return overnightFee;
    }

    public void setOvernightFee(String overnightFee) {
        this.overnightFee = overnightFee;
    }

    public String getStopLossPrice() {
        return stopLossPrice;
    }

    public void setStopLossPrice(String stopLossPrice) {
        this.stopLossPrice = stopLossPrice;
    }

    public String getStopProfitPrice() {
        return stopProfitPrice;
    }

    public void setStopProfitPrice(String stopProfitPrice) {
        this.stopProfitPrice = stopProfitPrice;
    }


    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }







    public String getStopProfit() {
        return stopProfit;
    }

    public void setStopProfit(String stopProfit) {
        this.stopProfit = stopProfit;
    }

    public String getStopLoss() {
        return stopLoss;
    }

    public void setStopLoss(String stopLoss) {
        this.stopLoss = stopLoss;
    }

    public String getSpread() {
        return spread;
    }

    public void setSpread(String spread) {
        this.spread = spread;
    }

    public String getNewPrice() {
        return newPrice;
    }

    public void setNewPrice(String newPrice) {
        this.newPrice = newPrice;
    }



    public double getCount() {
        return count;
    }

    public void setCount(double count) {
        this.count = count;
    }

}
